#ifndef  DATA_BASE_CONFIG_H
#define  DATA_BASE_CONFIG_H

#include <QString>
class DataBaseConfig{

public :

    static  DataBaseConfig* GetInstance();

    int     ReadFile(QString filePath);

    QString GetIp()           const;
    QString GetPort()         const;
    QString GetDataBaseName() const;
    QString GetUserName ()    const;
    QString GetUserPwd()      const;


private :    

    DataBaseConfig();

    static DataBaseConfig* _instance;
    int                    _configNum;     //配置文件值的数目
    QString                _ip;
    QString                _port;
    QString                _dataBaseName;
    QString                _userName;
    QString                _userPwd;

};

#endif
